home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d26
/
sf40_a.arc
/
TCOLORS.BAS
< prev
next >
Wrap
BASIC Source File
|
1990-12-09
|
4KB
|
90 lines
10 KEY OFF:CLS:SCREEN 1:COLOR 1,7
12 IF XX = 3 THEN 110
13 GOSUB 8500
14 A = 0:FOR T = 0 TO 9:CLS:DRAW "S14"
15 RANDOMIZE TIMER:L=INT(RND*7)+1:IF L=SV THEN 15
16 TR=0
18 GOSUB 150
20 ON L GOSUB 170,190,230,260,290,330,370
22 K3$=INKEY$:IF K3$="" THEN 20
24 IF ASC(K3$)=27 THEN CHAIN "TEST1",,ALL
26 G=ASC(K3$)-48:IF G>7 OR G<0 THEN 20
30 IF L=G THEN A= A +1:LOCATE 6,25:PRINT"CORRECT!":ON XX GOSUB 6050:FOR X= 0 TO 2000:NEXT:GOTO 50
35 TR=TR+1:IF TR=1 THEN LOCATE 5,10: PRINT"TRY AGAIN.":GOSUB 9000:GOTO 20
40 LOCATE 5,25:PRINT"NO, IT'S "; L :ON XX GOSUB 6080
45 FR$(T)=LS$(L):FOR X =1 TO 2000:NEXT:GOTO 50
50 SV=L:NEXT
60 CLS:PRINT TAB(10)"YOUR SCORE = ";A " OUT OF 10.":IF A <>10 THEN PRINT:PRINT TAB(10)"MISSED WERE:"
61 PRINT
65 FOR I=0 TO 9:PRINT TAB(10) FR$(I):NEXT
66 PRINT
70 LOCATE 16,10:INPUT "PLAY AGAIN (Y/N)";AN$
80 IF AN$="Y" THEN 14
90 IF AN$="N" THEN CHAIN "TEST1",,ALL
100 GOTO 70
110 CLS:GOSUB 150 'display menu
112 K3$=INKEY$:IF K3$="" THEN 112
114 IF ASC(K3$)=27 THEN CHAIN "TEST1",,ALL
116 G=ASC(K3$)-48:IF G>7 OR G<0 THEN 112
120 L=G:DRAW "S14"
130 ON L GOSUB 170,190,230,260,290,330,370
140 GOTO 110
150 LOCATE 1,7:PRINT"1=BLACK:2=WHITE:3=RED:4=BLUE:
155 LOCATE 3,8:PRINT"5=YELLOW:6=GREEN:7=PURPLE:
160 LOCATE 22,20:PRINT"PRESS A NUMBER <ESC> FOR MENU":RETURN
170 N1$="U6E5R10F1D1G1L5F1D1G1D1G1D1G1L3D2
175 A$=N1$:GOSUB 2000
180 DRAW "C0M150,100C3":DRAW A$:DRAW H$:GOSUB 9000
181 DRAW "C0M150,100":DRAW A$
182 DRAW "M90,100C3":DRAW A$:GOSUB 9000:DRAW "C0M90,100XA$;":GOSUB 9000:RETURN
190 N2$="U2H2U3 h3u2e1r1d1f3u1h2u4e1r1f1d2f2U9E1R1F1D7f1e1U8E1R1F1D11f2r2e1r3d1g4l2d1g2d2
210 A$=N2$:GOSUB 3000:DRAW BD$
211 DRAW "C0M150,100C3S8":DRAW A$
212 B$="U3H2U4 E1R2 U1 E1R1F1E1R2F1R1E1 R2F1D3 F2E1R2D1G4L2D2"
213 DRAW "C0M150,100XA$;"
220 DRAW "M150,100C3S8":DRAW B$
221 DRAW "C0M150,100XB$;M150,100C3XA$;":RETURN
230 N3$="U2 H3U4E1R1 u1E1R1 h3u1e1r1f2D3u6e1r1f1d5 f2 r2f1d4g2d3
240 A$=N3$:GOSUB 2000
250 FOR I = 1 TO 3:DRAW "S14C0M160,100C3":DRAW H$:DRAW "C0M145,160c3":DRAW A$:DRAW "C0M145,160":DRAW A$
251 DRAW "M145,180C3":DRAW A$:DRAW "C0M145,180C0":DRAW A$:DRAW "C0M145,160C3":DRAW A$
252 NEXT:RETURN
260 N4$="U3H3U12E1R1F1D6U9E1R1F1D7U9E1R1F1D8U8E1R1F1D10R3L5F2R1D3U3L1H2R5F2D4G3D4
270 A$=N4$
271 DRAW "C0M150,100C3":DRAW A$:GOSUB 9000
272 B$="U3H2U12E1R1 D6U9E1R1 D7U9E1R1 D8U8E1R1F1D11 L3G1D1F1 R1F1 D2U2H1L1H1U1E1R4F1D7G1D5
280 DRAW "C0M150,100XA$;M150,100C3S14":DRAW B$:GOSUB 9000
281 C$="U3H2U6E3 D3U13E1R1F1D9F2D10G1D2"
282 DRAW "C0M150,100XB$;M150,100C3S14":DRAW C$:GOSUB 9000
285 DRAW "C0M150,100XC$;M150,100C3S14":DRAW A$:GOSUB 9000:DRAW "C0M150,100XA$;":RETURN
290 N5$="U3H3U10E1R1F1D4E1R2D4G1L1H1U2D2F1R1E1U4E1R2D5G1L1H1F1R1E1
300 Y2$="U4E1R1F1D3G1L1H1F1R1E1U1F1r1u2e1r1f1d5g4d3
310 A$=N5$+Y2$
320 DRAW "C0M150,100C3":DRAW A$:GOSUB 9000:DRAW "C0M150,100XA$;"
321 B$="U3H3U10E1R1F1D4 G1D3F1D1F1H1U4E1U1E1R2F1D1U1H1 L2G1D5F1R1E1U3E3R1F1D4G2D2U2E1D5G1D1
322 DRAW "C0M150,100 C3S14":DRAW B$:GOSUB 9000
323 DRAW "C0M150,100XB$;M150,100C3S14":DRAW A$:RETURN
330 N6$="U2H2U1H1L3H1U2R4E1U1H2L5H1U2R10 F6D3G1D5
350 A$=N6$
360 DRAW "C0M150,100C3":DRAW A$:GOSUB 9000:DRAW "C0M150,100XA$;M150,100"
361 B$="U2H3U1H1L5H1U2R5E3U1L7G1D1F1R5L5H1U1E1R14F5D3G2D3"
362 DRAW "C3S14":DRAW B$:GOSUB 9000:DRAW "C0M150,100XB$;"
363 DRAW "M150,100C3S14":DRAW A$:RETURN
370 N7$="U3L1H3R2E1U1L3D2U2R3E1U2L5D1F2H1R2L2U1U1G5L1H1U1 E6R3L11H1U1E1R16F3L11F3R4F2H2L4H3R12F4D4G3D2":'G1E1F2D3G2D4
380 A$=N7$:FOR I=1 TO 2
390 DRAW "C0M150 ,100C3":DRAW A$:DRAW "C0
391 DRAW "M150 ,100 ":DRAW A$
400 DRAW "M150,150C3":DRAW A$:DRAW "C0M150,150":DRAW A$:NEXT
401 DRAW "M150,100C3":DRAW A$:DRAW "C0M150,100XA$;":RETURN
2000 H$="L3H4U5E3R5F3D5G4L3C0BE1BU1C3R2L1BU1U3H1L2R2F1E1R2":RETURN
3000 BD$= "C0M140,100C3S18U8E2R3E1U2F2R2E2D2F1R3F2D8":RETURN
6050 PLAY "L64O3CDEFGAB>C"
6070 RETURN
6080 FOR X=130 TO 115 STEP -5
6090 SOUND X,2:NEXT:RETURN
8000 DATA BLACK,WHITE,RED,BLUE,YELLOW,GREEN,PURPLE
8499 REM INIT TEST VARIABLES
8500 FOR I=1 TO 7:READ LS$(I):NEXT
8550 FOR T=0 TO 9:FR$(T)="":NEXT:RETURN
9000 FOR DL=0 TO 1500+ZZ:NEXT:RETURN